//store.js
import Vue from 'vue'
import Vuex from 'vuex'

// 头部分类
import detail from './modules/detail'
import category from './modules/category'
import login from './modules/login'


Vue.use(Vuex)


let data = {
  detail,
  category,
  login
}
data.login.state.token = localStorage.getItem('token') || 0;

export default new Vuex.Store({
  modules:data
})
